//
//  SCBaseCollectionViewController.h
//  Shuaiche
//
//  Created by dangshuai on 2019/3/11.
//  Copyright © 2019 zzs. All rights reserved.
//

#import "SCBaseViewController.h"

@interface SCBaseCollectionViewController : SCBaseViewController<UICollectionViewDelegate,UICollectionViewDataSource>

@property (nonatomic, strong) UICollectionView *collectionView;

@property (nonatomic, assign) int pageNo;
@property (nonatomic, assign) int pageSize;
@property (nonatomic, strong) NSMutableDictionary *params;
@property (nonatomic, strong) NSMutableArray *dataSource;
@property (nonatomic, assign) BOOL canScrollWhenNoData;
@property (nonatomic, copy) NSString *buttonEventName;


- (CGRect)collectionViewFrame;
- (UICollectionViewLayout *)collectionViewLayout;
- (void)configureCollectionView;

- (void)registerCellClass:(Class)cell;
- (void)registerNibCellName:(NSString *)cell;
- (void)registerNibHeaderName:(NSString *)header;

- (void)addGifHeaderRefresh;
- (void)addGifHeaderAutoRefresh:(BOOL)refresh;
- (void)removeHeaderRefrehs;
- (void)addFooterRefresh;
- (void)reloadCollectionView;
- (void)hideHeaderRefreshView:(BOOL)hide;
- (void)addHeaderRefresh;

- (void)pullRequestData;
- (void)loadMoreData;
- (void)noMoreData;
- (void)endRefresh;
- (void)endRefreshWithNoMoreData:(BOOL)noMore;

- (NSString *)emptyImageName;
//- (UIButton *)emptyButton;
- (NSString *)emptyTipString;
- (NSString *)emptyButtonTitle;
@end

